package cn.tesla_iot.chat.video.monitor;

import org.webrtc.DataChannel;
import org.webrtc.IceCandidate;
import org.webrtc.MediaStream;
import org.webrtc.PeerConnection;
import org.webrtc.RtpReceiver;

/**
 * This class implements the PeerConnection Observer
 * to create a peerConnection events.
 */
public class CustomPeerConnectionObserver implements PeerConnection.Observer, DataChannel.Observer {

  public CustomPeerConnectionObserver() {
  }

  @Override
  public void onSignalingChange(PeerConnection.SignalingState signalingState) {
  }

  @Override
  public void onIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) {
  }

  @Override
  public void onIceConnectionReceivingChange(boolean b) {
  }

  @Override
  public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
  }

  @Override
  public void onIceCandidate(IceCandidate iceCandidate) {
  }

  @Override
  public void onIceCandidatesRemoved(IceCandidate[] iceCandidates) {
  }

  @Override
  public void onAddStream(MediaStream mediaStream) {
  }

  @Override
  public void onRemoveStream(MediaStream mediaStream) {
  }

  @Override
  public void onDataChannel(DataChannel dataChannel) {
  }

  @Override
  public void onRenegotiationNeeded() {
  }

  @Override
  public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
  }

  //DataChannel.Observer----------------------------------------------------------------------
  @Override
  public void onBufferedAmountChange(long l) {

  }

  @Override
  public void onStateChange() {

  }

  @Override
  public void onMessage(DataChannel.Buffer buffer) {

  }
}
